import Vue from "vue";

import instance from "../request/index";

const http = {
  // 在Vue的prototype对象上, 挂载$http属性
  install(vue) {
    vue.prototype.$http = instance;
  },
};

Vue.use(http);
